const mongoose = require('mongoose')
const Schema = mongoose.Schema
// 限制user类型
const UserTypee = {
  username:String,
  password:String,
  age:Number
}

const UserModel = mongoose.model("user",new Schema(UserTypee))

// 模型user，对应users集合
module.exports = UserModel